package com.lzjy.tw.composedemo.ui.nav

import androidx.annotation.StringRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.BookmarkAdd
import androidx.compose.material.icons.filled.Note
import androidx.compose.ui.graphics.vector.ImageVector
import com.lzjy.tw.composedemo.R

enum class HomeTab(@StringRes val title: Int, val icon: ImageVector){
    Note(R.string.note, Icons.Filled.Note),
    Board(R.string.board, Icons.Filled.BookmarkAdd);
    companion object {
        fun getTabFromResource(@StringRes resource: Int): HomeTab {
            return when (resource) {
                R.string.board -> Board
                else -> Note
            }
        }
    }
}

sealed class NavScreen(val route :String){
    object Splash : NavScreen("splash")
    object Home : NavScreen("home")
}